package com.dataart.productshop.service;

import com.dataart.productshop.model.FileInfo;
import com.dataart.productshop.model.Picture;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.util.List;

public interface PictureManager {

	void savePicture(Picture picture);
	
	Picture getPictureById(Long id);
	
	void delete(Long id);
	
	List<Picture> getPictureByFileInfo(FileInfo fileInfo);

    boolean savePictures(String folderPath, FileInfo fileInfo, CommonsMultipartFile... pictures);
}
